<? include('layer/head.html'); ?>
<body class="ly4 ranking">
    <? include('layer/topnav.html'); ?>
    <? include('layer/header.html'); ?>
    <div class="contenter clrfix">
        <div class="article clrfix">
        	<?php if($superrank){ foreach($superrank as $key=>$val){?>
        	<div class="previous_star">
                <div class="box_border">
                    <div class="wrap bd">
                    	<?php if($val['usertype'] == 1){?>
                    	<a href="/<?php echo $val['usernum'];?>"><img src="<?php echo $val['rank_pic'];?>" width="295" height="208" ></a>
                        <?php }else{?>
                        <img src="<?php echo $val['rank_pic'];?>" width="295" height="208" >
                        <?php }?>
                    </div>
                </div>
                <div class="nickname">
                <?php if($val['usertype'] == 1){?>
                	<a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a> 
                <?php }else{?>
                	<?php echo $val['nickname'];?>
                <?php }?>    
                    <span class="usernum">(<?php echo $val['usernum'];?>)</span>
                    <?php if($val['usertype'] == 1){?>
                    	<span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                    <?php }else{?>
                		<span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                	<?php }?> 
                </div>
            </div>
            
        	<?php }}?>
            
        	
        </div>
        <div class="article clrfix">
            <div class="ranking_panel ranking_winning_user"> 
                
                <div class="hd"></div>
                <div class="box_border">
                    <div class="wrap bd mpt a_tab">
                        <ul class="tab_style_1 clrfix">
                            <li><a href="javascript:;" tab_bd="e_tab_bd_1" class="e_tab_hanle on">10倍</a></li>
                            <li>|<a href="javascript:;" tab_bd="e_tab_bd_2" class="e_tab_hanle">100倍</a></li>
                          
                            <li>|<a href="javascript:;" tab_bd="e_tab_bd_4" class="e_tab_hanle">500倍</a></li>
                        </ul>
                        
                        <ul class="title clrfix">
                        	<li>中奖用户</li>
                        	<li>次数</li>
                        </ul>
                        <?php if($award10timesuser){?>
                        <!---------50倍中奖用户排行Begin--------->
                        <ul class="list_2 e_tab_bd e_tab_bd_1">
                        	<?php foreach($award10timesuser as $key=>$val){?>
                            <li class="clrfix">
                                <div class="order_num"> <img src="http://static.9xiu.com/www/img/order_num/<?php echo $key+1;?>.gif"> </div>
                                <div class="nickname">
                                    <em><?php echo $val['nickname'];?></em>
                                    <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                </div>
                                <div class="time"><?php echo $val['awardtotal']?$val['awardtotal']:0;?></div>
                            </li>
                            <?php }?>
                        </ul>
                        <!---------50倍中奖用户排行End--------->
                        <?php }?>
                        
                        <?php if($award100timesuser){?>
                        <!---------100倍中奖用户排行Begin--------->
                        <ul class="list_2 e_tab_bd e_tab_bd_2 hide">
                        	<?php foreach($award100timesuser as $key=>$val){?>
                            <li class="clrfix">
                                <div class="order_num"> <img src="http://static.9xiu.com/www/img/order_num/<?php echo $key+1;?>.gif"> </div>
                                <div class="nickname">
                                    <em><?php echo $val['nickname'];?></em>
                                    <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                </div>
                                <div class="time"><?php echo $val['awardtotal']?$val['awardtotal']:0;?></div>
                            </li>
                            <?php }?>
                        </ul>
                        <!---------100倍中奖用户排行End--------->
                        <?php }?>
                        
                   
                        
                        <?php if($award500timesuser){?>
                        <!---------500倍中奖用户排行Begin--------->
                        <ul class="list_2 e_tab_bd e_tab_bd_4 hide">
                        	<?php foreach($award500timesuser as $key=>$val){?>
                            <li class="clrfix">
                                <div class="order_num"> <img src="http://static.9xiu.com/www/img/order_num/<?php echo $key+1;?>.gif"> </div>
                                <div class="nickname">
                                    <em><?php echo $val['nickname'];?></em>
                                    <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                </div>
                                <div class="time"><?php echo $val['awardtotal']?$val['awardtotal']:0;?></div>
                            </li>
                            <?php }?>
                        </ul>
                        <!---------500倍中奖用户排行End--------->
                        <?php }?>
                        
                    </div>
                </div>
            </div>
            
            <div class="ranking_panel ranking_winning_room"> 
                
                <div class="hd"></div>
                <div class="box_border">
                    <div class="wrap bd mpt a_tab">
                        <ul class="tab_style_1 clrfix">
                            <li><a href="javascript:;" tab_bd="e_tab_bd_1" class="e_tab_hanle on">10倍</a></li>
                            <li>|<a href="javascript:;" tab_bd="e_tab_bd_2" class="e_tab_hanle">100倍</a></li>
                            <li>|<a href="javascript:;" tab_bd="e_tab_bd_4" class="e_tab_hanle">500倍</a></li>
                        </ul>
                        
                        <ul class="title clrfix">
                        	<li>中奖房间</li>
                        	<li>次数</li>
                        </ul>
                        
                        <?php if($award10timesroom){?>
                        <!---------50倍中奖房间排行End--------->
                        <ul class="list_2 e_tab_bd e_tab_bd_1">
                        	<?php foreach($award10timesroom as $key=>$val){?>
                            <li class="clrfix">
                                <div class="order_num"> <img src="http://static.9xiu.com/www/img/order_num/<?php echo $key+1;?>.gif"> </div>
                                <div class="nickname">
                                    <a href="/<?php echo $val['usernum']?>"><?php echo $val['nickname'];?></a>
                                    <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                                </div>
                                <div class="time"><?php echo $val['awardtotal']?$val['awardtotal']:0;?></div>
                            </li>
                            <?php }?>
                        </ul>
                        <!---------50倍中奖房间排行End--------->
                        <?php }?>
                        
                        <?php if($award100timesroom){?>
                        <!---------100倍中奖房间排行End--------->
                        <ul class="list_2 e_tab_bd e_tab_bd_2 hide">
                        	<?php foreach($award100timesroom as $key=>$val){?>
                            <li class="clrfix">
                                <div class="order_num"> <img src="http://static.9xiu.com/www/img/order_num/<?php echo $key+1;?>.gif"> </div>
                                <div class="nickname">
                                    <a href="/<?php echo $val['usernum']?>"><?php echo $val['nickname'];?></a>
                                        <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                                </div>
                                <div class="time"><?php echo $val['awardtotal']?$val['awardtotal']:0;?></div>
                            </li>
                            <?php }?>
                        </ul>
                        <!---------100倍中奖房间排行End--------->
                        <?php }?>
                        
                        
                        <?php if($award500timesroom){?>
                        <!---------500倍中奖房间排行End--------->
                        <ul class="list_2 e_tab_bd e_tab_bd_4 hide">
                        	<?php foreach($award500timesroom as $key=>$val){?>
                            <li class="clrfix">
                                <div class="order_num"> <img src="http://static.9xiu.com/www/img/order_num/<?php echo $key+1;?>.gif"> </div>
                                <div class="nickname">
                                    <a href="/<?php echo $val['usernum']?>"><?php echo $val['nickname'];?></a>
                                        <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                                </div>
                                <div class="time"><?php echo $val['awardtotal']?$val['awardtotal']:0;?></div>
                            </li>
                            <?php }?>
                        </ul>
                        <!---------500倍中奖房间排行End--------->
                        <?php }?>
                        
                    </div>
                </div>
            </div>
        </div>
        <div class="article clrfix">
            <div class="ranking_panel ranking_anchor_20 Anchor_Ranking"> 
                
                <div class="hd"></div>
                <div class="box_border">
                    <div class="wrap bd mpt a_tab">
                        <ul class="tab_style_2 clrfix">
                            <li><a href="javascript:;" tab_bd="e_tab_bd_1" class="e_tab_hanle on">日</a></li>
                            <li>|<a href="javascript:;" tab_bd="e_tab_bd_2" class="e_tab_hanle">周</a></li>
                            <li>|<a href="javascript:;" tab_bd="e_tab_bd_3" class="e_tab_hanle">月</a></li>
                            <li>|<a href="javascript:;" tab_bd="e_tab_bd_4" class="e_tab_hanle">总</a></li>
                        </ul>
                        <?php if($topstarday){ foreach($topstarday as $key=>$val){?>
                        <!---------主播排行日榜Begin------>
                            <?php if($key < 3){?>
                            <div class="first clrfix e_tab_bd e_tab_bd_1">
                                <a href="/<?php echo $val['usernum'];?>"><img class="photo" src="<?php echo (!empty($val['avatar']) ? $val['avatar'] : STATIC_HTTP . 'img/avatar.gif');?>"></a>
                                <ul class="info">
                                    <li class="nickname"><a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a></li>
                                    <li class="roomnum"><a href="/<?php echo $val['usernum'];?>">(房间号 <?php echo $val['usernum'];?>)</a></li>
                                </ul>
                                <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                            </div>
                            <?php }else if($key >= 3 && $key < 10){?> 
                                <div class="list clrfix e_tab_bd e_tab_bd_1 ">
                                    <div class="nickname"><a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a></div>
                                    <div class="roomnum"><a href="/<?php echo $val['usernum'];?>">(<?php echo $val['usernum'];?>)</a></div>
                                    <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                                </div>
                            <?php }?>
                        <!---------主播排行日榜End------>
                        <?php }}?>
                        
                        <?php if($topstarweek){ foreach($topstarweek as $key=>$val){?>
                        <!---------主播排行周榜Begin------>
                        <?php if($key < 3){?>
                            <div class="first clrfix e_tab_bd e_tab_bd_2 hide">
                                <a href="/<?php echo $val['usernum'];?>"><img class="photo" src="<?php echo (!empty($val['avatar']) ? $val['avatar'] : STATIC_HTTP . 'img/avatar.gif');?>"></a>
                                <ul class="info">
                                    <li class="nickname"><a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a></li>
                                    <li class="roomnum"><a href="/<?php echo $val['usernum'];?>">(房间号 <?php echo $val['usernum'];?>)</a></li>
                                </ul>
                                <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                            </div>
                        <?php }else if($key >= 3 && $key < 10){?> 
                            <div class="list clrfix e_tab_bd e_tab_bd_2 hide">
                                <div class="nickname"><a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a></div>
                                <div class="roomnum"><a href="/<?php echo $val['usernum'];?>">(<?php echo $val['usernum'];?>)</a></div>
                                <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                            </div>
                        <?php }?>
                        <!---------主播排行周榜End------>
                        <?php }}?>
                        
                        <?php if($topstarmonth){ foreach($topstarmonth as $key=>$val){?>
                        <!---------主播排行月榜Begin------>
                        <?php if($key < 3){?>
                            <div class="first clrfix e_tab_bd e_tab_bd_3 hide">
                                <a href="/<?php echo $val['usernum'];?>"><img class="photo" src="<?php echo (!empty($val['avatar']) ? $val['avatar'] : STATIC_HTTP . 'img/avatar.gif');?>"></a>
                                <ul class="info">
                                    <li class="nickname"><a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a></li>
                                    <li class="roomnum"><a href="/<?php echo $val['usernum'];?>">(房间号 <?php echo $val['usernum'];?>)</a></li>
                                </ul>
                                <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                            </div>
                        <?php }else if($key >= 3 && $key < 10){?> 
                            <div class="list clrfix e_tab_bd e_tab_bd_3 hide">
                                <div class="nickname"><a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a></div>
                                <div class="roomnum"><a href="/<?php echo $val['usernum'];?>">(<?php echo $val['usernum'];?>)</a></div>
                                <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                            </div>
                        <?php }?>
                        <!---------主播排行月榜End------>
                        <?php }}?>
                        
                        <?php if($topstarall){ foreach($topstarall as $key=>$val){?>
                        <!---------主播排总榜Begin------>
                        <?php if($key < 3){?>
                            <div class="first clrfix e_tab_bd e_tab_bd_4 hide">
                                <a href="/<?php echo $val['usernum'];?>"><img class="photo" src="<?php echo (!empty($val['avatar']) ? $val['avatar'] : STATIC_HTTP . 'img/avatar.gif');?>"></a>
                                <ul class="info">
                                    <li class="nickname"><a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a></li>
                                    <li class="roomnum"><a href="/<?php echo $val['usernum'];?>">(房间号 <?php echo $val['usernum'];?>)</a></li>
                                </ul>
                                <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                            </div>
                        <?php }else if($key >= 3 && $key < 10){?> 
                            <div class="list clrfix e_tab_bd e_tab_bd_4 hide">
                                <div class="nickname"><a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a></div>
                                <div class="roomnum"><a href="/<?php echo $val['usernum'];?>">(<?php echo $val['usernum'];?>)</a></div>
                                <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                            </div>
                        <?php }?>
                        <!---------主播排行总榜End------>
                        <?php }}?>
                        
                    </div>
                </div>
            </div>
            
            <div class="ranking_panel ranking_popular_20 popularity_Ranking"> 
                
                <div class="hd"></div>
                
                <div class="box_border">
                    <div class="wrap bd mpt a_tab">
                        <ul class="tab_style_2 clrfix">
                            <li><a href="javascript:;" tab_bd="e_tab_bd_1" class="e_tab_hanle on">日</a></li>
                            <li>|<a href="javascript:;" tab_bd="e_tab_bd_2" class="e_tab_hanle">周</a></li>
                            <li>|<a href="javascript:;" tab_bd="e_tab_bd_3" class="e_tab_hanle">月</a></li>
                            <li>|<a href="javascript:;" tab_bd="e_tab_bd_4" class="e_tab_hanle">总</a></li>
                        </ul>
                        
                        <?php if($toproomsday){ foreach($toproomsday as $key=>$val){?>
                        <!----------人气日榜Begin--------->
                            <?php if($key < 3){?>
                                <div class="first clrfix e_tab_bd e_tab_bd_1">
                                    <a href="/<?php echo $val['usernum'];?>"><img class="photo" src="<?php echo (!empty($val['avatar']) ? $val['avatar'] : STATIC_HTTP . 'img/avatar.gif');?>"></a>
                                    <ul class="info">
                                        <li class="nickname"><a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a></li>
                                        <li class="roomnum"><a href="/<?php echo $val['usernum'];?>">(房间号 <?php echo $val['usernum'];?>)</a></li>
                                    </ul>
                                    <?php if($val['usertype'] == 1){?>
                                        <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                                    <?php }else{?>
                                        <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                    <?php }?>
                                </div>
                            <?php }else if($key >= 3 && $key < 10){?> 
                                <div class="list clrfix e_tab_bd e_tab_bd_1">
                                    <div class="nickname"><a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a></div>
                                    <div class="roomnum"><a href="/<?php echo $val['usernum'];?>">(<?php echo $val['usernum'];?>)</a></div>
                                    <?php if($val['usertype'] == 1){?>
                                        <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                                    <?php }else{?>
                                        <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                    <?php }?>
                                </div>
                            <?php }?>
                        <!----------人气日榜End--------->
                        <?php }}?>
                        
                        <?php if($toproomsweek){ foreach($toproomsweek as $key=>$val){?>
                        <!----------人气周榜Begin--------->
                            <?php if($key < 3){?>
                                <div class="first clrfix e_tab_bd e_tab_bd_2 hide">
                                    <a href="/<?php echo $val['usernum'];?>"><img class="photo" src="<?php echo (!empty($val['avatar']) ? $val['avatar'] : STATIC_HTTP . 'img/avatar.gif');?>"></a>
                                    <ul class="info">
                                        <li class="nickname"><a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a></li>
                                        <li class="roomnum"><a href="/<?php echo $val['usernum'];?>">(房间号 <?php echo $val['usernum'];?>)</a></li>
                                    </ul>
                                    <?php if($val['usertype'] == 1){?>
                                        <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                                    <?php }else{?>
                                        <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                    <?php }?>
                                </div>
                            <?php }else if($key >= 3 && $key < 10){?> 
                                <div class="list clrfix e_tab_bd e_tab_bd_2 hide">
                                    <div class="nickname"><a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a></div>
                                    <div class="roomnum"><a href="/<?php echo $val['usernum'];?>">(<?php echo $val['usernum'];?>)</a></div>
                                    <?php if($val['usertype'] == 1){?>
                                        <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                                    <?php }else{?>
                                        <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                    <?php }?>
                                </div>
                            <?php }?>
                        <!----------人气周榜End--------->
                        <?php }}?>
                        
                        <?php if($toproomsmonth){ foreach($toproomsmonth as $key=>$val){?>
                        <!----------人气月榜Begin--------->
                            <?php if($key < 3){?>
                                <div class="first clrfix e_tab_bd e_tab_bd_3 hide">
                                    <a href="/<?php echo $val['usernum'];?>"><img class="photo" src="<?php echo (!empty($val['avatar']) ? $val['avatar'] : STATIC_HTTP . 'img/avatar.gif');?>"></a>
                                    <ul class="info">
                                        <li class="nickname"><a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a></li>
                                        <li class="roomnum"><a href="/<?php echo $val['usernum'];?>">(房间号 <?php echo $val['usernum'];?>)</a></li>
                                    </ul>
                                    <?php if($val['usertype'] == 1){?>
                                        <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                                    <?php }else{?>
                                        <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                    <?php }?>
                                </div>
                            <?php }else if($key >= 3 && $key < 10){?> 
                                <div class="list clrfix e_tab_bd e_tab_bd_3 hide">
                                    <div class="nickname"><a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a></div>
                                    <div class="roomnum"><a href="/<?php echo $val['usernum'];?>">(<?php echo $val['usernum'];?>)</a></div>
                                    <?php if($val['usertype'] == 1){?>
                                        <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                                    <?php }else{?>
                                        <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                    <?php }?>
                                </div>
                            <?php }?>
                        <!----------人气月榜End--------->
                        <?php }}?>
                        
                        <?php if($toproomsall){ foreach($toproomsall as $key=>$val){?>
                        <!----------人气总榜Begin--------->
                            <?php if($key < 3){?>
                                <div class="first clrfix e_tab_bd e_tab_bd_4 hide">
                                    <a href="/<?php echo $val['usernum'];?>"><img class="photo" src="<?php echo (!empty($val['avatar']) ? $val['avatar'] : STATIC_HTTP . 'img/avatar.gif');?>"></a>
                                    <ul class="info">
                                        <li class="nickname"><a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a></li>
                                        <li class="roomnum"><a href="/<?php echo $val['usernum'];?>">(房间号 <?php echo $val['usernum'];?>)</a></li>
                                    </ul>
                                    <?php if($val['usertype'] == 1){?>
                                        <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                                    <?php }else{?>
                                        <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                    <?php }?>
                                </div>
                            <?php }else if($key >= 3 && $key < 10){?> 
                                <div class="list clrfix e_tab_bd e_tab_bd_4 hide">
                                    <div class="nickname"><a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname'];?></a></div>
                                    <div class="roomnum"><a href="/<?php echo $val['usernum'];?>">(<?php echo $val['usernum'];?>)</a></div>
                                    <?php if($val['usertype'] == 1){?>
                                        <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                                    <?php }else{?>
                                        <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                    <?php }?>
                                </div>
                            <?php }?>
                        <!----------人气总榜End--------->
                        <?php }}?>
                        
                    </div>
                </div>
            </div>
            
            <div class="ranking_panel ranking_rich_20 toff_Ranking"> 
                <a href="./Activityfirstman" target="_abank" class="access_first"><img src="http://static.9xiu.com/www/img/mingren.png" /></a>
                <div class="hd"></div>
                <div class="box_border">
                    <div class="wrap bd mpt a_tab">
                        <ul class="tab_style_2 clrfix">
                            <li><a href="javascript:;" tab_bd="e_tab_bd_1" class="e_tab_hanle on">日</a></li>
                            <li>|<a href="javascript:;" tab_bd="e_tab_bd_2" class="e_tab_hanle">周</a></li>
                            <li>|<a href="javascript:;" tab_bd="e_tab_bd_3" class="e_tab_hanle">月</a></li>
                            <li>|<a href="javascript:;" tab_bd="e_tab_bd_4" class="e_tab_hanle">总</a></li>
                        </ul>
                        <?php if($topwealthday){ foreach($topwealthday as $key=>$val){?>
                        <!----------财富日榜Begin--------->
                            <?php if($key < 3){?>
                                <div class="first clrfix e_tab_bd e_tab_bd_1">
                                    <img class="photo" src="<?php echo (!empty($val['avatar']) ? $val['avatar'] : STATIC_HTTP . 'img/avatar.gif');?>">
                                    <ul class="info">
                                        <li class="nickname"><?php echo $val['nickname'];?></li>
                                    </ul>
                                    <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                </div>
                            <?php }else if($key >= 3 && $key < 10){?> 
                                <div class="list clrfix e_tab_bd e_tab_bd_1">
                                    <div class="nickname"><?php echo $val['nickname'];?></div>
                                    <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                </div>
                            <?php }?>
                        <!----------财富日榜End--------->
                        <?php }}?>
                        
                        <?php if($topwealthweek){ foreach($topwealthweek as $key=>$val){?>
                        <!----------财富周榜Begin--------->
                            <?php if($key < 3){?>
                                <div class="first clrfix e_tab_bd e_tab_bd_2 hide">
                                    <img class="photo" src="<?php echo (!empty($val['avatar']) ? $val['avatar'] : STATIC_HTTP . 'img/avatar.gif');?>">
                                    <ul class="info">
                                        <li class="nickname"><?php echo $val['nickname'];?></li>
                                    </ul>
                                    <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                </div>
                            <?php }else if($key >= 3 && $key < 10){?> 
                                <div class="list clrfix e_tab_bd e_tab_bd_2 hide">
                                    <div class="nickname"><?php echo $val['nickname'];?></div>
                                    <?php if($val['usertype'] == 1){?>
                                        <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                                    <?php }else{?>
                                        <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                    <?php }?>
                                </div>
                            <?php }?>
                        <!----------财富周榜End--------->
                        <?php }}?>
                        
                        <?php if($topwealthmonth){ foreach($topwealthmonth as $key=>$val){?>
                        <!----------财富月榜Begin--------->
                            <?php if($key < 3){?>
                                <div class="first clrfix e_tab_bd e_tab_bd_3 hide">
                                    <img class="photo" src="<?php echo (!empty($val['avatar']) ? $val['avatar'] : STATIC_HTTP . 'img/avatar.gif');?>">
                                    <ul class="info">
                                        <li class="nickname"><?php echo $val['nickname'];?></li>
                                    </ul>
                                    <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                </div>
                            <?php }else if($key >= 3 && $key < 10){?> 
                                <div class="list clrfix e_tab_bd e_tab_bd_3 hide">
                                    <div class="nickname"><?php echo $val['nickname'];?></div>
                                    <?php if($val['usertype'] == 1){?>
                                        <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                                    <?php }else{?>
                                        <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                    <?php }?>
                                </div>
                            <?php }?>
                        <!----------财富月榜End--------->
                        <?php }}?>
                        
                        <?php if($topwealthall){ foreach($topwealthall as $key=>$val){?>
                        <!----------财富总榜Begin--------->
                            <?php if($key < 3){?>
                                <div class="first clrfix e_tab_bd e_tab_bd_4 hide">
                                    <img class="photo" src="<?php echo (!empty($val['avatar']) ? $val['avatar'] : STATIC_HTTP . 'img/avatar.gif');?>">
                                    <ul class="info">
                                        <li class="nickname"><?php echo $val['nickname'];?></li>
                                    </ul>
                                    <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                </div>
                            <?php }else if($key >= 3 && $key < 10){?> 
                                <div class="list clrfix e_tab_bd e_tab_bd_4 hide">
                                    <div class="nickname"><?php echo $val['nickname'];?></div>
                                    <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                </div>
                            <?php }?>
                        <!----------财富总榜End--------->
                        <?php }}?>
                        
                    </div>
                </div>
            </div>
        </div>
        <div class="article clrfix">
            <div class="ranking_panel ranking_gift_star mpt a_tab"> 
                
                <div class="hd">
                	<ul class="tab">
                    	<li tab_bd="e_tab_bd_1" class="e_tab_hanle current_gift_star_til on"></li>
                    	<li tab_bd="e_tab_bd_2" class="e_tab_hanle last_gift_star_til"></li>
                    </ul>
                </div>
                <div class="box_border">
                    <div class="wrap bd clrfix">
                        <div class="e_tab_bd e_tab_bd_1 column_wrap">
                        	<?php if($topgiftcurweek){?>
                            <div class="column">
                            	<?php foreach($topgiftcurweek as $key=>$val){?>
                                    <?php if(($key%10) == 0 && $key > 0){?>	
                                        </div>
                                        <div class="column">
                                            <ul class="clrfix">
                                                <li><img class="photo" src="<?php echo STATICGIFT.'gift'.$val['gid'].'.png';?>"></li>
                                                <li><?php echo $val['giftname']?> <span class="total">(<?php echo $val['totalnum']?>)</span></li>
                                                <li class="nickname">
                                                <?php if(1 == $val['usertype']){?>
                                                    	<a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname']?></a>
                                                    <?php }else{?>
                                                    	<?php echo $val['nickname']?>
                                                    <?php }?>
                                                <?php if($val['usertype'] == 1){?>
                                                    <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                                                <?php }else{?>
                                                    <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                                <?php }?>
                                                </li>
                                            </ul>
                                    <?php }else{?>
                                    	<ul class="clrfix">
                                                <li><img class="photo" src="<?php echo STATICGIFT.'gift'.$val['gid'].'.png';?>"></li>
                                                <li><?php echo $val['giftname']?> <span class="total">(<?php echo $val['totalnum']?>)</span></li>
                                                <li class="nickname">
                                                <?php if(1 == $val['usertype']){?>
                                                    	<a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname']?></a>
                                                    <?php }else{?>
                                                    	<?php echo $val['nickname']?>
                                                    <?php }?>
                                                <?php if($val['usertype'] == 1){?>
                                                    <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                                                <?php }else{?>
                                                    <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                                <?php }?>
                                                </li>
                                        </ul>
                                    <?php }?>
                                  <?php }?>  
                                </div>
                            <?php }?>
                        </div>
                        
                        <div class="e_tab_bd e_tab_bd_2 column_wrap hide">
                        	<?php if($topgiftpreweek){?>
                                <div class="column">
                                    <?php foreach($topgiftpreweek as $key=>$val){?>
                                        <?php if($key%10 == 0 && $key > 0){?>
                                        </div>
                                            <div class="column">
                                                <ul class="clrfix">
                                                    <li><img class="photo" src="<?php echo STATICGIFT.'gift'.$val['gid'].'.png';?>"></li>
                                                    <li><?php echo $val['giftname']?> <span class="total">(<?php echo $val['totalnum']?>)</span></li>
                                                    <li class="nickname">
                                                    <?php if(1 == $val['usertype']){?>
                                                    	<a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname']?></a>
                                                    <?php }else{?>
                                                    	<?php echo $val['nickname']?>
                                                    <?php }?>
                                                    <?php if($val['usertype'] == 1){?>
                                                    <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                                                <?php }else{?>
                                                    <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                                <?php }?>
                                                    </li>
                                                </ul>
                                        <?php }else{?>
                                                <ul class="clrfix">
                                                    <li><img class="photo" src="<?php echo STATICGIFT.'gift'.$val['gid'].'.png';?>"></li>
                                                    <li><?php echo $val['giftname']?> <span class="total">(<?php echo $val['totalnum']?>)</span></li>
                                                    <li class="nickname">
                                                    <?php if(1 == $val['usertype']){?>
                                                    	<a href="/<?php echo $val['usernum'];?>"><?php echo $val['nickname']?></a>
                                                    <?php }else{?>
                                                    	<?php echo $val['nickname']?>
                                                    <?php }?>
                                                    <?php if($val['usertype'] == 1){?>
                                                        <span class="mpt a_createicon" credit="<?php echo $val['credit']?>" type="credit"></span>
                                                    <?php }else{?>
                                                        <span class="mpt a_createicon" wealth="<?php echo $val['wealth']?>" type="wealth"></span>
                                                    <?php }?>
                                                    </li>
                                                </ul>
                                        <?php }?>
                                    <?php }?>    
                                </div>
                           <?php }?>
                        </div>
                    </div>
                </div>
            </div>
            
        </div>
    </div>
	<? include('layer/footer.html'); ?>
<? include('layer/foot.html'); ?>
<? include('layer/jsstart.html'); ?>